<?php echo $this->doctype(); ?>
<html>
<head>

	<?php echo $this->headMeta(); ?>
	<?php echo $this->headTitle(); ?>
	<?php echo $this->headLink()->prependStylesheet($this->baseUrl() . '/public/css/application.css')
		                        ->prependStylesheet($this->baseUrl() . '/public/css/bootstrap.css');

	?>		


    <?php  echo $this->headScript()->appendFile($this->baseUrl(). '/public/js/bootstrap.js')
	            					->prependFile($this->baseUrl() . '/public/js/javascript.js')
									->prependFile($this->baseUrl() . '/public/js/jquery.js');
	
	?>

</head>
 <script type="text/javascript">
$(function() {
	$("#inputTel").mask("(99)9999-9999");
	$("#inputCpf").mask("999.999.999-99");
});
</script>
<body >
	<div id="baseUrl"><?= $this->baseUrl() ?></div>
		<? if(empty($_SESSION['role'])){?>
			<div class="container-login">
				<?= $this->action("index","index"); ?>
				<span class="<?= is_null($this->layout()->msg) ?"":"label label-important"?>" id="span-logar">
				<?= $this->layout()->msg ?>
				</span> 
			</div>
		<? }else{?>
			<div class="navbar">
				<div class="navbar-inner">
					<div class="container">
						<?= $this->partial("navBar.phtml");	?>
				</div>
			</div>
		
		  		<div id='content'>
		  			 <div id="msgs" style="height: 20px;" >
			 	<?php $dados = $this->layout()->msg;
			 		if($dados['tipo'] == "sucesso"){?>
			 			 <span class="label label-success"><?= $dados['mensagem']?></span> 
			 		<? }?>
			 </div>	
	            	<?php echo $this->layout()->content; ?>
	        	</div>
	        </div>
		<? }?>

	
</body>
</html>
